package com.mzkj.common.data;

/**
 * 接口状态码
 * Created by wangxw on 2016/12/12.
 */
public enum StatusCode {
    /**
     * success
     */
    SC0("0", "success"),
    /**
     *
     */
    SC10("10", "调用成功，但未调用支付"),
    /**
     * 数据为空
     */
    SC1000("1000", "数据为空"),
    /**
     * 用户不存在
     */
    SC1001("1001", "用户不存在"),
    /**
     * 密码错误
     */
    SC1002("1002", "密码错误"),
    /**
     * 验证码错误
     */
    SC1003("1003", "验证码错误"),
    /**
     * 手机号已存在
     */
    SC1004("1004", "该手机号已被使用"),
    /**
     * access_token无效
     */
    SC2000("2000", "access_token无效"),
    /**
     * access_token失效
     */
    SC2001("2001", "access_token失效"),
    /**
     * refresh_token无效
     */
    SC2002("2002", "refresh_token无效"),
    /**
     * refresh_token失效
     */
    SC2003("2003", "refresh_token失效"),
    /**
     * 缺少access_token
     */
    SC2004("2004", "缺少access_token"),
    /**
     * 参数错误
     */
    SC4000("4000", "参数错误"),

    /**
     * 缺少参数
     */
    SC4001("4001", "缺少参数"),

    /**
     * 查询出错
     */
    SC4002("4002", "查询出错"),

    /**
     * 库存不足
     */
    SC4003("4003", "所选玩具库存不足,请重新选择"),

    /**
     * 数据重复
     */
    SC4004("4004", "数据重复"),

    /**
     * 会员过期
     */
    SC4005("4005", "会员过期"),

    /**
     * 未成为会员
     */
    SC4006("4006", "未成为会员"),
    /**
     * 会员套餐未激活
     */
    SC4007("4007", "不能购买,还有尚未激活的会员套餐"),

    SC4008("4008", "不符合购买会员规则"),

    SC4009("4009","符合会员购买规则会员升级"),
    SC40010("40010","玩具已下架"),

    SC40011("40011", "所选玩具星值已高于当前会员套餐"),
    SC4001101("4001101", "所选玩具星值已高于当前会员套餐"),

    SC40012("40012", "所选玩具星值低于当前会员套餐"),
    SC40013("40013", "不在下单时间范围内"),

    SC40014("40014", "存在不合理的退还玩具"),
    SC40015("40015", "无效地址"),
    SC40016("40016", "您的会员即将到期，无法配送，请您续费后再来下单"),

    SC3000("3000", "周度优惠券只能使用一次"),

    SC40000("40000", "您还未购买会员套餐,请先进行购买"),

    SC40001("40001", "您已拥有相同的玩具"),

    SC40002("40002", "提交订单失败"),

    SC400301("400301", "请选择正确的配送时间(近七天工作日)"),

    SC400302("400302", "四点前下单最早明天配送,四点后最早后天配送"),

    SC400303("400303", "配送时间应在七天以内"),

    SC400501("400501", "您有未支付订单,请取消订单后再进行下单"),
    SC400502("400502", "您有个订单已提交,请取消订单后再进行下单"),

    SC40006("40006", "您有订单正在服务中，需等待完成配送后再次下单"),
    SC40007("40007", "该订单已确认,不能取消"),

    SC400101("400101", "您有个未支付订单,需取消订单后方可再次下单"),

    SC400102("400102", "您有个订单已提交,请取消订单后再进行下单"),

    SC400103("400103", "您有订单正在服务中，需等待完成配送后再次下单"),

    SC400104("400104", "该订单已确认,不能取消"),

    SC400105("400105", "订单已取消,请重新下单"),

    SC400106("400106", "订单已关闭,请重新下单"),

    SC40009("40009", "配送日期在VIP时效范围外,请重新选择"),
    SC400601("400601", "会员尚未到期，请到期后尝试退款"),
    SC400602("400602", "请在玩具回收后的第二个工作日申请退款"),
    SC400604("400604", "申请退款失败"),

    SC6000("6000", "发送失败"),

    /**
     * 系统错误
     */
    SC5000("5000", "系统错误"),;

    private String value;
    private String desc;

    private StatusCode(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
